package string;

public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "thinking in Java";
        System.out.println(str.startsWith("think"));
        System.out.println(str.endsWith("Java"));
        System.out.println(str.endsWith("hahaha"));
    }
}
